package io.a2a.spec;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * Agent provider information
 */
@JsonInclude(JsonInclude.Include.NON_ABSENT)
@JsonIgnoreProperties(ignoreUnknown = true)
public class AgentProvider {
    private String name;
    private String url;
    
    public AgentProvider() {}
    
    public AgentProvider(String name, String url) {
        this.name = name;
        this.url = url;
    }
    
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    public String getUrl() {
        return url;
    }
    
    public void setUrl(String url) {
        this.url = url;
    }
    
    public static class Builder {
        private String name;
        private String url;
        
        public Builder name(String name) {
            this.name = name;
            return this;
        }
        
        public Builder url(String url) {
            this.url = url;
            return this;
        }
        
        public AgentProvider build() {
            return new AgentProvider(name, url);
        }
    }
}